﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyProj.MVCProj3.IDAL
{
    public interface IBaseRepository<T>
    {

        IQueryable<T> LoadEntities(Func<T, bool> whereLamda);
        IQueryable<T> LoadPageEntities<TKey>(int pageSize, int pageIndex, out int total, Func<T, bool> whereLamda, Func<T, TKey> ordeyByLamda, bool isAsc);

        bool AddEntity(T entity);
        bool DeleteEntity(T entity);
        bool UpdateEntity(T entity);
    }
}
